
package com.gitee.jmash.oidc.oauth2;

import jakarta.enterprise.context.Dependent;
import jakarta.inject.Inject;
import java.io.Serializable;
import org.eclipse.microprofile.config.inject.ConfigProperty;

/**
 * OAuth Properties .
 *
 * @author CGD
 *
 */
@Dependent
public class OauthServerProps implements Serializable {

  private static final long serialVersionUID = 1L;

  /** Sign Private Key. */
  @Inject
  @ConfigProperty(name = "smallrye.jwt.sign.key")
  private String privateKey = "Config OIDC smallrye.jwt.sign.key Private Key.";

  /** encrypt Public Key. */
  @Inject
  @ConfigProperty(name = "smallrye.jwt.encrypt.key")
  private String encryptKey = "Config OIDC smallrye.jwt.encrypt.key Public Key.";

  @Inject
  @ConfigProperty(name = "jmash.oauth.sm4key")
  private String sm4key;

  public String getPrivateKey() {
    return privateKey;
  }

  public void setPrivateKey(String privateKey) {
    this.privateKey = privateKey;
  }

  public String getEncryptKey() {
    return encryptKey;
  }

  public void setEncryptKey(String encryptKey) {
    this.encryptKey = encryptKey;
  }

  public String getSm4key() {
    return sm4key;
  }

  public void setSm4key(String sm4key) {
    this.sm4key = sm4key;
  }


}
